package tests;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class FallingGameTest {

	private static fallingGame.FallingGame f;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		f = new fallingGame.FallingGame();
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		f = null;
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public final void testFallingGame() {
		try {
			f = new fallingGame.FallingGame();
			Thread.sleep(3000);
			new Thread(f).start();
			Thread.sleep(3000);
			f.setRunForeverView(false); // kill thread
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

	}

}
